package cn.sharp.bbs.service;

import cn.sharp.bbs.entity.BO.UserQuery;
import cn.sharp.bbs.entity.DO.Role;
import cn.sharp.bbs.entity.DO.User;

import java.util.List;
import java.util.Map;

public interface UserManageService {
    boolean isInvalidUser(Long uid);
    User getUserDetails(Long uid);
    Map<String, Object> getUserList(UserQuery query);

    void editUserState(Long uid, int state);

    List<Role> listUserRole(Long uid);

    void modifyUserRole(Long uid, Long[] roles);

    boolean checkRoles(Long[] roles);

    int getUserNum();

    int getPostNum();
}
